package com.practice.pojo.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Jasmine
 * @since 2023-05-14
 */
@Data
@Accessors(chain = true)
@TableName("sys_config")
@ApiModel(value = "Config对象", description = "")
public class Config implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("配置名称")
    @JsonProperty("group_value")
    private String groupValue;

    @ApiModelProperty("tab 引入的组件名称")
    @JsonProperty("tab_value")
    private String tabValue;

    @ApiModelProperty("配置配置键名英文")
    @JsonProperty("attr_key")
    private String attrKey;

    @ApiModelProperty("配置字段中文名")
    @JsonProperty("attr_name")
    private String attrName;

    @ApiModelProperty("配置值内容")
    @JsonProperty("attr_value")
    private String attrValue;

    @ApiModelProperty("0正常 1 已删除")
    @TableLogic
    @JsonProperty("del_flag")
    private Integer delFlag;

    @ApiModelProperty("字段类型，参见字段表")
    private Integer type;

    @ApiModelProperty("单选多选数据值")
    private String configValue;

    @ApiModelProperty("验证规则	")
    private String validator;

    @ApiModelProperty("输入框提示文字")
    private String placeholder;

    @ApiModelProperty("0 不可删除，1可删除")
    @JsonProperty("can_delete")
    private Integer canDelete;

    @ApiModelProperty("显示权重，数字大的往后")
    @JsonProperty("sort_num")
    private Integer sortNum;


}
